package com.cn.ycy.conf;

import org.springframework.cloud.gateway.filter.NettyWriteResponseFilter;
import org.springframework.core.Ordered;

/**
 * 过滤器执行顺序
 *
 * @author zhangjinhuia
 */
public interface FilterOrder {

    int RESPONSE_ORDER = NettyWriteResponseFilter.WRITE_RESPONSE_FILTER_ORDER - 50;

    int ADD_REQUEST_LOG_TRACE_ID_ORDER = Ordered.HIGHEST_PRECEDENCE + 5;
    int CLINT_ENDPOINT_ORDER = Ordered.HIGHEST_PRECEDENCE + 10;
    int TOKEN_FILTER_ORDER = Ordered.HIGHEST_PRECEDENCE+50;

    int ADDAPIID_FILTER_ORDER = 550;

    int REQUEST_TIMEOUT_FILTER_ORDER = 600;
    int TIMEOUT_FILTER_ORDER = 650;

    int CROSS_FILTER_ORDER = Ordered.LOWEST_PRECEDENCE - 5;
    int SERVER_ENDPOINT_ORDER = Ordered.LOWEST_PRECEDENCE - 10;
}
